//
//  ActivityDetailViewController.m
//  UI_03homeworkNo02
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ActivityDetailViewController.h"
#import "ActivityDetailView.h"
#import "TitleLabel.h"
#import "ActivityImageView.h"
#import "ImagLabelView.h"

@interface ActivityDetailViewController ()

@end

@implementation ActivityDetailViewController

// 重写初始化方法.
-(instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    return self;
}



- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self creatActivityDetailView];
    [self creatTitleLabel];
    [self creatImages];
    [self creatImageLabelView];
    [self creatSoMuchLines];
}

-(void)creatActivityDetailView{
    ActivityDetailView *activityView = [[ActivityDetailView alloc]initWithFrame:self.view.frame];
    activityView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:activityView];
    [activityView release];
}

-(void)creatTitleLabel{
    TitleLabel *titLabel = [[TitleLabel alloc]initWithFrame:CGRectMake(5, 15, self.view.frame.size.width, 160) withText:@"赵雷2014新专辑<<吉姆餐厅>>首发演唱会, 北京站" withFontNumber:23];
    titLabel.lineBreakMode = UILineBreakModeWordWrap;
    titLabel.numberOfLines = 2;
    [self.view addSubview:titLabel];
    [titLabel release];
    
    
    TitleLabel *introduce = [[TitleLabel alloc]initWithFrame:CGRectMake(5, 340, 120, 45) withText:@"活动介绍" withFontNumber:25];
    [self.view addSubview:introduce];
    [introduce release];
    
    
    
    
    
}
-(void)creatSoMuchLines{
    UILabel *contect = [[UILabel alloc]initWithFrame:CGRectMake(5, 350, 350, 290)];
    [contect setText:@"[新专辑2014全国巡演合作咨询] \n @蒋步庭 \n 微博http://weibo.com/jiangbuting \n 豆瓣http://www.douban.com/people/jiangjin/ \n QQ1193657158 \n 邮箱1193657158@qq.com \n 手机18610967776 \n [赵雷巡演两千人群241855614] \n [赵雷歌迷北京活动群189347699] \n ---------------------------------------------- \n ----------------- \n 赵雷2014新专辑<吉姆餐厅> 专辑首发演出, 北京站 \n 演出时间: 10月19日"];
    [contect setFont:[UIFont boldSystemFontOfSize:13]];
    contect.textAlignment = NSTextAlignmentLeft;
    contect.numberOfLines = 0;
    [self.view addSubview:contect];
    [contect release];
    
    

}

                   
                   
                   

-(void)creatImages{
    ActivityImageView *poster = [[ActivityImageView alloc]initWithFrame:CGRectMake(5, 140, 120, 190) withImageName:@"陈奕迅么么.jpg"];
    [self.view addSubview:poster];
    [poster release];
    
}


-(void)creatImageLabelView{
    ImagLabelView *time = [[ImagLabelView alloc]initWithFrame:CGRectMake(130, 140, 250, 20) withImageView:@"时间.png" withLabelText:@"10-18 19:00--10-18 23:30"];
    [self.view addSubview:time];
    [time release];
    
    
    ImagLabelView *ower = [[ImagLabelView alloc]initWithFrame:CGRectMake(130, 180, 250, 20) withImageView:@"人物.png" withLabelText:@"赵雷"];
    [self.view addSubview:ower];
    [ower release];
    
    ImagLabelView *category = [[ImagLabelView alloc]initWithFrame:CGRectMake(130, 225, 250, 20) withImageView:@"类型.png" withLabelText:@"类型: 音乐"];
    [self.view addSubview:category];
    [category release];
    
    
    ImagLabelView *address = [[ImagLabelView alloc]initWithFrame:CGRectMake(130, 270, 250, 20) withImageView:@"地址.png" withLabelText:@"北京 东城区 北京市东城区"];
    [self.view addSubview:address];
    [address release];
    
    UILabel *hunguoqu = [[UILabel alloc]initWithFrame:CGRectMake(145, 300, 250, 20)];
    hunguoqu.text = @"和平里西街79号糖果大楼三层";
    hunguoqu.font = [UIFont systemFontOfSize:14];
    [self.view addSubview:hunguoqu];
    [hunguoqu release];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
